//
//  ChoosedGoodsCell.m
//  LoveFreshBeen
//
//  Created by 胡不归是大虾 on 2016/10/19.
//  Copyright © 2016年 魏根. All rights reserved.
//

#import "ChoosedGoodsCell.h"
#import "HMHomeFirstModel.h"
@interface ChoosedGoodsCell( )
@property (weak, nonatomic) IBOutlet UILabel *goodsNameLable;
@property (weak, nonatomic) IBOutlet UILabel *goodsCountLable;
@property (weak, nonatomic) IBOutlet UILabel *goodsPriceLable;




@end
@implementation ChoosedGoodsCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
-(void)setModel:(HMHomeFirstModel *)model{
    _model = model;
    self.goodsNameLable.text = model.name;
    self.goodsCountLable.text = [NSString stringWithFormat:@"×%ld",model.goodsCount];
//    CGFloat price = 0.0;
//    price = model.goodsCount * model.partner_price;
    self.goodsPriceLable.text = [NSString stringWithFormat:@"$%.1f",model.partner_price];
}
@end
